/**
 * Created by zhangwenlei on 2017/5/2.
 */
BCP.bill.domControl.Number=function(parent){
    BCP.bill.domControl.Number.superclass.constructor.call(this,parent);
};

COM.util.defineClass(BCP.bill.domControl.Number,ADF.domControl.Number,{

    getLabel:function () {
        return BCP.bill.domControl.Number.superclass.getLabel.call(this)+" BCPNumber";
    },

    setBinding:function (binding) {
        if(binding){
            $(this.domElement).find('input').attr("data-bind","value:" + binding);
        }else{
            $(this.domElement).find('input').removeAttr("data-bind");
        }
    },
    _getDomElement:function (model) {
        var element= BCP.bill.domControl.Number.superclass._getDomElement.call(this,model);
        if(model.getBinding()){
            $(element).find('input').attr("data-bind","value:" + model.getBinding());
        }
        return element;
    }
});